package com.dmap.admin.units;


import java.util.Random;

/**
 * \* User: helei
 * \* Date: 18/05/18
 * \* Description:
 * \
 */
public class AdminQcloudSMSUnit {
    private AdminQcloudSMSUnit() {
    }

    // 生成一个4位数字的随机码
    public static String generateCode() {
        Random random = new Random();
        int randomNum = random.nextInt(8999);
        int code = randomNum + 1000;
        return String.valueOf(code);
    }

}